"Humans are the only creatures who do not want to die..."
I think your teacher was referring to the fact that humans seem to be the only creatures that are aware that they will someday die whereas animals only react to present threats. If so then the reason for that is that we seem to be the only animal who, due to the evolution of our brain, has a concept of the future and our place in it.